<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%
String path = request.getContextPath();
%>

<!--  2010-07-06 修改班级名称 -->
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <title>修改班级名称</title>
	<link href="<%=path %>/css/index_css.css" rel="stylesheet" type="text/css" />
	<script language="javascript" src="<%=path %>/js/syAjax.js"></script>
	<script type="text/javascript">
      function doAdd()
	{
	  var classId=document.getElementById("classId").value;
	  syAjax.request("post","<%=path %>/updClassNameGradeAndClassAction.action","classes.name="+document.getElementById("name").value+"&classes.grade.gradeId=${classList.grade.gradeId}&classes.year=${classList.year}&classes.status=${classList.status}&classes.registerTime=${classList.registerTime}&classes.deleteTime=${classList.deleteTime}&classes.sort="+document.getElementById("sort").value+"&classes.classId="+classId+"&classes.videoUrl="+document.getElementById('videoUrl').value,{success:initSuccessResult,fail:onFail,type:'plain'});
	 	
	}
	function initSuccessResult(data){
		window.returnValue=data;
		window.close();
	}
	</script>
  </head>
  
  <body bgcolor="#ECE9D8">&nbsp;&nbsp;
   <form action="" method="post">
     <table align="center"  border="0" cellspacing="0" cellpadding="0" >
        <tr>
        <td align="right" width="20%">年级：<br></td>
        <td width="80%" align="left">${classList.grade.name }</td>
       
       </tr> 
       <tr>
       	<td align="right">班级：</td>
       	 <td width="31%" valign="bottom">
          <input type="hidden" name="classId" id="classId" value="${classList.classId }" />
          <input name="className" id="name" type="text" size="20" maxlength="25" value="${classList.name }" />
        </td>
       </tr>
       <tr>
        <td align="right">序号：</td>
        <td><input name="sort" id="sort" type="text" size="20" value="${classList.sort}" /></td>
       
       </tr>   
        <tr>
        <td align="right" nowrap="nowrap">视频URL：</td>
        <td><input name="videoUrl" id="videoUrl" type="text" size="40" value="${classList.videoUrl}" /></td>
       </tr>                      
    </table>
      <table width="100%" border="0" cellspacing="0" cellpadding="0" align="center">
        <tr>
          <td height="35" colspan="2" align="center" valign="bottom"><input onclick="doAdd();" type="button" name="Submit" value="提 交" /></td>
        </tr>
      </table>

</form>
  </body>
</html>
